Conversation
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
| Responses = components?.Responses != null ? new Dictionary<string, OpenApiResponse>(components.Responses) : null; | ||
| Parameters = components?.Parameters != null ? new Dictionary<string, OpenApiParameter>(components.Parameters) : null; | ||
| Examples = components?.Examples != null ? new Dictionary<string, OpenApiExample>(components.Examples) : null; | ||
| Examples = components?.Examples != null ? new Dictionary<string, IOpenApiExample>(components.Examples) : null; |
Check warning
Code scanning / CodeQL
Virtual call in constructor or destructor Warning
There was a problem hiding this comment.
This one will get fixed as we update the other types
| _schema = header?.Schema != null ? new(header.Schema) : null; | ||
| Example = header?.Example != null ? JsonNodeCloneHelper.Clone(header.Example) : null; | ||
| Examples = header?.Examples != null ? new Dictionary<string, OpenApiExample>(header.Examples) : null; | ||
| Examples = header?.Examples != null ? new Dictionary<string, IOpenApiExample>(header.Examples) : null; |
Check warning
Code scanning / CodeQL
Virtual call in constructor or destructor Warning
There was a problem hiding this comment.
This one will get fixed as we update the other types
| AllowReserved = parameter?.AllowReserved ?? AllowReserved; | ||
| _schema = parameter?.Schema != null ? new(parameter.Schema) : null; | ||
| Examples = parameter?.Examples != null ? new Dictionary<string, OpenApiExample>(parameter.Examples) : null; | ||
| Examples = parameter?.Examples != null ? new Dictionary<string, IOpenApiExample>(parameter.Examples) : null; |
Check warning
Code scanning / CodeQL
Virtual call in constructor or destructor Warning
There was a problem hiding this comment.
This one will get fixed as we update the other types
|


Issues
partial #1998
Commits
Details
This PR:
steps 4 and below need to be replicated for all other types.